Optimal. Leaf size=178 \[ -\frac {7 \tanh ^{-1}(\sin (c+d x))}{256 a d}-\frac {7 \sec (c+d x) \tan (c+d x)}{256 a d}+\frac {7 \sec ^3(c+d x) \tan (c+d x)}{128 a d}-\frac {7 \sec ^3(c+d x) \tan ^3(c+d x)}{96 a d}+\frac {7 \sec ^3(c+d x) \tan ^5(c+d x)}{80 a d}-\frac {\sec ^3(c+d x) \tan ^7(c+d x)}{10 a d}+\frac {\tan ^8(c+d x)}{8 a d}+\frac {\tan ^{10}(c+d x)}{10 a d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.19, antiderivative size = 178, normalized size of antiderivative = 1.00, number of steps
used = 10, number of rules used = 6, integrand size = 29, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.207, Rules used = {2914, 2687,
14, 2691, 3853, 3855} \begin {gather*} \frac {\tan ^{10}(c+d x)}{10 a d}+\frac {\tan ^8(c+d x)}{8 a d}-\frac {7 \tanh ^{-1}(\sin (c+d x))}{256 a d}-\frac {\tan ^7(c+d x) \sec ^3(c+d x)}{10 a d}+\frac {7 \tan ^5(c+d x) \sec ^3(c+d x)}{80 a d}-\frac {7 \tan ^3(c+d x) \sec ^3(c+d x)}{96 a d}+\frac {7 \tan (c+d x) \sec ^3(c+d x)}{128 a d}-\frac {7 \tan (c+d x) \sec (c+d x)}{256 a d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 14
Rule 2687
Rule 2691
Rule 2914
Rule 3853
Rule 3855
Rubi steps
\begin {align*} \int \frac {\sec ^2(c+d x) \tan ^7(c+d x)}{a+a \sin (c+d x)} \, dx &=\frac {\int \sec ^4(c+d x) \tan ^7(c+d x) \, dx}{a}-\frac {\int \sec ^3(c+d x) \tan ^8(c+d x) \, dx}{a}\\ &=-\frac {\sec ^3(c+d x) \tan ^7(c+d x)}{10 a d}+\frac {7 \int \sec ^3(c+d x) \tan ^6(c+d x) \, dx}{10 a}+\frac {\text {Subst}\left (\int x^7 \left (1+x^2\right ) \, dx,x,\tan (c+d x)\right )}{a d}\\ &=\frac {7 \sec ^3(c+d x) \tan ^5(c+d x)}{80 a d}-\frac {\sec ^3(c+d x) \tan ^7(c+d x)}{10 a d}-\frac {7 \int \sec ^3(c+d x) \tan ^4(c+d x) \, dx}{16 a}+\frac {\text {Subst}\left (\int \left (x^7+x^9\right ) \, dx,x,\tan (c+d x)\right )}{a d}\\ &=-\frac {7 \sec ^3(c+d x) \tan ^3(c+d x)}{96 a d}+\frac {7 \sec ^3(c+d x) \tan ^5(c+d x)}{80 a d}-\frac {\sec ^3(c+d x) \tan ^7(c+d x)}{10 a d}+\frac {\tan ^8(c+d x)}{8 a d}+\frac {\tan ^{10}(c+d x)}{10 a d}+\frac {7 \int \sec ^3(c+d x) \tan ^2(c+d x) \, dx}{32 a}\\ &=\frac {7 \sec ^3(c+d x) \tan (c+d x)}{128 a d}-\frac {7 \sec ^3(c+d x) \tan ^3(c+d x)}{96 a d}+\frac {7 \sec ^3(c+d x) \tan ^5(c+d x)}{80 a d}-\frac {\sec ^3(c+d x) \tan ^7(c+d x)}{10 a d}+\frac {\tan ^8(c+d x)}{8 a d}+\frac {\tan ^{10}(c+d x)}{10 a d}-\frac {7 \int \sec ^3(c+d x) \, dx}{128 a}\\ &=-\frac {7 \sec (c+d x) \tan (c+d x)}{256 a d}+\frac {7 \sec ^3(c+d x) \tan (c+d x)}{128 a d}-\frac {7 \sec ^3(c+d x) \tan ^3(c+d x)}{96 a d}+\frac {7 \sec ^3(c+d x) \tan ^5(c+d x)}{80 a d}-\frac {\sec ^3(c+d x) \tan ^7(c+d x)}{10 a d}+\frac {\tan ^8(c+d x)}{8 a d}+\frac {\tan ^{10}(c+d x)}{10 a d}-\frac {7 \int \sec (c+d x) \, dx}{256 a}\\ &=-\frac {7 \tanh ^{-1}(\sin (c+d x))}{256 a d}-\frac {7 \sec (c+d x) \tan (c+d x)}{256 a d}+\frac {7 \sec ^3(c+d x) \tan (c+d x)}{128 a d}-\frac {7 \sec ^3(c+d x) \tan ^3(c+d x)}{96 a d}+\frac {7 \sec ^3(c+d x) \tan ^5(c+d x)}{80 a d}-\frac {\sec ^3(c+d x) \tan ^7(c+d x)}{10 a d}+\frac {\tan ^8(c+d x)}{8 a d}+\frac {\tan ^{10}(c+d x)}{10 a d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 1.23, size = 124, normalized size = 0.70 \begin {gather*} -\frac {210 \tanh ^{-1}(\sin (c+d x))-\frac {30}{(1-\sin (c+d x))^4}+\frac {160}{(1-\sin (c+d x))^3}-\frac {315}{(1-\sin (c+d x))^2}+\frac {210}{1-\sin (c+d x)}-\frac {48}{(1+\sin (c+d x))^5}+\frac {270}{(1+\sin (c+d x))^4}-\frac {580}{(1+\sin (c+d x))^3}+\frac {525}{(1+\sin (c+d x))^2}}{7680 a d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.25, size = 127, normalized size = 0.71
method | result | size |
derivativedivides | \(\frac {\frac {1}{160 \left (1+\sin \left (d x +c \right )\right )^{5}}-\frac {9}{256 \left (1+\sin \left (d x +c \right )\right )^{4}}+\frac {29}{384 \left (1+\sin \left (d x +c \right )\right )^{3}}-\frac {35}{512 \left (1+\sin \left (d x +c \right )\right )^{2}}-\frac {7 \ln \left (1+\sin \left (d x +c \right )\right )}{512}+\frac {1}{256 \left (\sin \left (d x +c \right )-1\right )^{4}}+\frac {1}{48 \left (\sin \left (d x +c \right )-1\right )^{3}}+\frac {21}{512 \left (\sin \left (d x +c \right )-1\right )^{2}}+\frac {7}{256 \left (\sin \left (d x +c \right )-1\right )}+\frac {7 \ln \left (\sin \left (d x +c \right )-1\right )}{512}}{d a}\) | \(127\) |
default | \(\frac {\frac {1}{160 \left (1+\sin \left (d x +c \right )\right )^{5}}-\frac {9}{256 \left (1+\sin \left (d x +c \right )\right )^{4}}+\frac {29}{384 \left (1+\sin \left (d x +c \right )\right )^{3}}-\frac {35}{512 \left (1+\sin \left (d x +c \right )\right )^{2}}-\frac {7 \ln \left (1+\sin \left (d x +c \right )\right )}{512}+\frac {1}{256 \left (\sin \left (d x +c \right )-1\right )^{4}}+\frac {1}{48 \left (\sin \left (d x +c \right )-1\right )^{3}}+\frac {21}{512 \left (\sin \left (d x +c \right )-1\right )^{2}}+\frac {7}{256 \left (\sin \left (d x +c \right )-1\right )}+\frac {7 \ln \left (\sin \left (d x +c \right )-1\right )}{512}}{d a}\) | \(127\) |
risch | \(\frac {i \left (950 i {\mathrm e}^{4 i \left (d x +c \right )}+3206 i {\mathrm e}^{8 i \left (d x +c \right )}+105 \,{\mathrm e}^{i \left (d x +c \right )}-4420 \,{\mathrm e}^{15 i \left (d x +c \right )}-29372 \,{\mathrm e}^{11 i \left (d x +c \right )}+24710 \,{\mathrm e}^{9 i \left (d x +c \right )}-1778 i {\mathrm e}^{6 i \left (d x +c \right )}+1778 i {\mathrm e}^{12 i \left (d x +c \right )}-210 i {\mathrm e}^{2 i \left (d x +c \right )}+210 i {\mathrm e}^{16 i \left (d x +c \right )}-950 i {\mathrm e}^{14 i \left (d x +c \right )}-3206 i {\mathrm e}^{10 i \left (d x +c \right )}-4420 \,{\mathrm e}^{3 i \left (d x +c \right )}+105 \,{\mathrm e}^{17 i \left (d x +c \right )}+9044 \,{\mathrm e}^{13 i \left (d x +c \right )}+9044 \,{\mathrm e}^{5 i \left (d x +c \right )}-29372 \,{\mathrm e}^{7 i \left (d x +c \right )}\right )}{1920 \left ({\mathrm e}^{i \left (d x +c \right )}+i\right )^{10} \left ({\mathrm e}^{i \left (d x +c \right )}-i\right )^{8} d a}-\frac {7 \ln \left ({\mathrm e}^{i \left (d x +c \right )}+i\right )}{256 a d}+\frac {7 \ln \left ({\mathrm e}^{i \left (d x +c \right )}-i\right )}{256 a d}\) | \(277\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.29, size = 214, normalized size = 1.20 \begin {gather*} \frac {\frac {2 \, {\left (105 \, \sin \left (d x + c\right )^{8} + 105 \, \sin \left (d x + c\right )^{7} + 895 \, \sin \left (d x + c\right )^{6} - 65 \, \sin \left (d x + c\right )^{5} - 961 \, \sin \left (d x + c\right )^{4} - \sin \left (d x + c\right )^{3} + 489 \, \sin \left (d x + c\right )^{2} + 9 \, \sin \left (d x + c\right ) - 96\right )}}{a \sin \left (d x + c\right )^{9} + a \sin \left (d x + c\right )^{8} - 4 \, a \sin \left (d x + c\right )^{7} - 4 \, a \sin \left (d x + c\right )^{6} + 6 \, a \sin \left (d x + c\right )^{5} + 6 \, a \sin \left (d x + c\right )^{4} - 4 \, a \sin \left (d x + c\right )^{3} - 4 \, a \sin \left (d x + c\right )^{2} + a \sin \left (d x + c\right ) + a} - \frac {105 \, \log \left (\sin \left (d x + c\right ) + 1\right )}{a} + \frac {105 \, \log \left (\sin \left (d x + c\right ) - 1\right )}{a}}{7680 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.41, size = 187, normalized size = 1.05 \begin {gather*} \frac {210 \, \cos \left (d x + c\right )^{8} - 2630 \, \cos \left (d x + c\right )^{6} + 4708 \, \cos \left (d x + c\right )^{4} - 3344 \, \cos \left (d x + c\right )^{2} - 105 \, {\left (\cos \left (d x + c\right )^{8} \sin \left (d x + c\right ) + \cos \left (d x + c\right )^{8}\right )} \log \left (\sin \left (d x + c\right ) + 1\right ) + 105 \, {\left (\cos \left (d x + c\right )^{8} \sin \left (d x + c\right ) + \cos \left (d x + c\right )^{8}\right )} \log \left (-\sin \left (d x + c\right ) + 1\right ) - 2 \, {\left (105 \, \cos \left (d x + c\right )^{6} - 250 \, \cos \left (d x + c\right )^{4} + 184 \, \cos \left (d x + c\right )^{2} - 48\right )} \sin \left (d x + c\right ) + 864}{7680 \, {\left (a d \cos \left (d x + c\right )^{8} \sin \left (d x + c\right ) + a d \cos \left (d x + c\right )^{8}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.66, size = 156, normalized size = 0.88 \begin {gather*} -\frac {\frac {420 \, \log \left ({\left | \sin \left (d x + c\right ) + 1 \right |}\right )}{a} - \frac {420 \, \log \left ({\left | \sin \left (d x + c\right ) - 1 \right |}\right )}{a} + \frac {5 \, {\left (175 \, \sin \left (d x + c\right )^{4} - 868 \, \sin \left (d x + c\right )^{3} + 1302 \, \sin \left (d x + c\right )^{2} - 828 \, \sin \left (d x + c\right ) + 195\right )}}{a {\left (\sin \left (d x + c\right ) - 1\right )}^{4}} - \frac {959 \, \sin \left (d x + c\right )^{5} + 4795 \, \sin \left (d x + c\right )^{4} + 7490 \, \sin \left (d x + c\right )^{3} + 5610 \, \sin \left (d x + c\right )^{2} + 2055 \, \sin \left (d x + c\right ) + 291}{a {\left (\sin \left (d x + c\right ) + 1\right )}^{5}}}{30720 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 16.70, size = 496, normalized size = 2.79 \begin {gather*} \frac {\frac {7\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{17}}{128}+\frac {7\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{16}}{64}-\frac {35\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{15}}{96}-\frac {161\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{14}}{192}+\frac {469\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{13}}{480}+\frac {2681\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{12}}{960}-\frac {593\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{11}}{480}+\frac {25667\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{10}}{960}+\frac {1447\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^9}{192}+\frac {25667\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^8}{960}-\frac {593\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^7}{480}+\frac {2681\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^6}{960}+\frac {469\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5}{480}-\frac {161\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4}{192}-\frac {35\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3}{96}+\frac {7\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2}{64}+\frac {7\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{128}}{d\,\left (a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{18}+2\,a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{17}-7\,a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{16}-16\,a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{15}+20\,a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{14}+56\,a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{13}-28\,a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{12}-112\,a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{11}+14\,a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{10}+140\,a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^9+14\,a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^8-112\,a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^7-28\,a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^6+56\,a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5+20\,a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4-16\,a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3-7\,a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2+2\,a\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )+a\right )}-\frac {7\,\mathrm {atanh}\left (\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\right )}{128\,a\,d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________